package cn.huaqingcheng.tool.core.function;

import java.io.Serializable;

/**
 * 允许抛出异常, 可序列化的 function
 *
 * @see java.util.function.Function
 */
@FunctionalInterface
@SuppressWarnings({"unused", "ClassNamePrefixedWithPackageName"})
public interface Function<T, R, E extends Throwable> extends Serializable {

    R apply(T t) throws E;

}
